#ifndef CC_DETAIL_STDINT_H
#define CC_DETAIL_STDINT_H

#if defined(_MSC_VER)
/* msvc */
/** callback-currying needs: uint8_t, uint32_t,uintptr_t */
typedef unsigned __int8     uint8_t;
typedef unsigned __int32    uint32_t;

    #if _MSC_VER<1400

        #ifdef _WIN64
        #error only supprt on 32bit system
        #endif
    typedef uint32_t uintptr_t;

    #else
    #include <stddef.h>
    /* has uintptr_t */

    #endif

#elif defined(__GNUC__)
/* gcc */
#include <stdint.h>
#else
/* unknown compiler */
#include <stdint.h>
#endif

#endif  /* #ifndef CC_DETAIL_STDINT_H */
